home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / telecomm / fnordadl / fn132src.zoo / cith / configur.h < prev    next >
C/C++ Source or Header  |  1991-09-02  |  3KB  |  100 lines

  1. /*
  2.  * configur.h - defines and extern declarations for configur
  3.  *
  4.  * 90Nov21 AA    Renamed three of them back again -- we can use the lib now.
  5.  * 90Aug28 AA    Four functions subordinate to msgscan() renamed to avoid
  6.  *        conflict with library functions.
  7.  * 90Jul21 AA    Created.
  8.  */
  9.  
  10. #ifndef _CONFIGUR_H
  11. #define _CONFIGUR_H
  12.  
  13. /* function declarations for cfg.c */
  14.  
  15. #if defined(__STDC__) || defined(__cplusplus)
  16. # define _P(s) s
  17. #else
  18. # define _P(s) ()
  19. #endif
  20.  
  21. void setupdefaults _P((void));
  22. void parsecnfg _P((void));
  23. void buildevent _P((char *line));
  24. void addevent _P((struct evt_type *evt));
  25. void buildpoll _P((char *line));
  26. void buildarch _P((char *line));
  27. int decodeday _P((char *when));
  28. int readXstring _P((char *line, int maxsize, int flag));
  29. int readDstring _P((char *from));
  30. void readString _P((char *source, char *destination, char doproc));
  31. void doformat _P((char *s));
  32. void dependerr _P((char *errorstring));
  33. void setflag _P((int arg, long mask));
  34. void setvariable _P((char *var, int arg));
  35. void set_audit _P((int x, short bit));
  36. void checkdepend _P((int depend[]));
  37. void exists _P((OFFSET where));
  38. void openfiles _P((void));
  39. void querysysop _P((void));
  40. int msgscan _P((void));
  41. void getmsg _P((void));
  42. void roomscan _P((void));
  43. void verifyroomok _P((int slot));
  44. int logscan _P((void));
  45. int logsort _P((const struct lTable *s1, const struct lTable *s2));
  46. int floorscan _P((void));
  47. int netscan _P((int init));
  48. int normID _P((LABEL source, LABEL dest));
  49. void zapscan _P((void));
  50. int getx _P((int i));
  51. int putx _P((void));
  52. int msginit _P((void));
  53. void realmsginit _P((int fl));
  54. int roominit _P((int which));
  55. void writenewroom _P((int slot));
  56. int loginit _P((void));
  57. int floorinit _P((void));
  58. void cleanup _P((void));
  59.  
  60. #undef _P
  61.  
  62. /* #defines */
  63. #define MSGS 0        /* indices into tozap[] array */
  64. #define LOG 1
  65. #define NET 2
  66. #define FLOOR 3
  67.  
  68. #define NONE 0        /* values for roomsmissing */
  69. #define SOME 1
  70. #define ALL 2
  71.  
  72. #define ANYTOZAP() \
  73. (tozap[MSGS] || tozap[LOG] || tozap[NET] || tozap[FLOOR] || roomsmissing)
  74.  
  75. #define CFG    "ctdlcnfg.sys"
  76.  
  77. #define DEPENDSIZE 16
  78.  
  79. #define    NODETITLE   0    /* sys */
  80. #define    SYSDIR      1    /* sys */
  81. #define ROOMDIR        2    /* sys */
  82. #define    HELPDIR     3    /* sys */
  83. #define    MSGDIR      4    /* sys */
  84. #define    AUDITDIR    5
  85. #define    NETDIR      6    /* network */
  86. #define    RECEIPTDIR  7    /* network */
  87. #define    NETPREFIX   8    /* network */
  88. #define NETSUFFIX   9    /* network */
  89. #define    NODENAME   10    /* network */
  90. #define    NODEID     11    /* network */
  91. #define    MESSAGEK   12    /* sys */
  92. #define LTABSIZE   13    /* sys */
  93. #define    SYSBAUD    14    /* sys */
  94. #define HOLDDIR       15
  95.  
  96. /* miscellaneous */
  97. #define myrealloc(ptr,size)    (size == 0 ? ptr : realloc(ptr,size))
  98.  
  99. #endif /* _CONFIGUR_H */
  100.